/*
* Copyright (c) 2020 - 2025 Renesas Electronics Corporation and/or its affiliates
*
* SPDX-License-Identifier: BSD-3-Clause
*/

#include "hw_sce_ra_private.h"

void HW_SCE_p_func044 (void)
{
    WR1_PROG(REG_94H, 0x00008cc0U);
    WR1_PROG(REG_94H, 0x00ffffffU);
    WR1_PROG(REG_94H, 0x000090c0U);
    WR1_PROG(REG_94H, 0x01000000U);

    WR1_PROG(REG_D4H, 0x40000000U);
    WR1_PROG(REG_D0H, 0x30009104U);
    WR1_PROG(REG_9CH, 0x810100c0U);
    WR1_PROG(REG_00H, 0x00490005U);
    WAIT_STS(REG_04H, 30, 0);
    WR1_PROG(REG_40H, 0x00001800U);

    WR1_PROG(REG_94H, 0x00008cc0U);
    WR1_PROG(REG_94H, 0x00ffffffU);
    WR1_PROG(REG_94H, 0x000090c0U);
    WR1_PROG(REG_94H, 0x02000000U);

    WR1_PROG(REG_D4H, 0x40000000U);
    WR1_PROG(REG_D0H, 0x30009044U);
    WR1_PROG(REG_9CH, 0x810100c0U);
    WR1_PROG(REG_00H, 0x00490005U);
    WAIT_STS(REG_04H, 30, 0);
    WR1_PROG(REG_40H, 0x00001800U);

    HW_SCE_p_func100(0xde92c9d7U, 0x4135eb5dU, 0x51204f50U, 0xba008022U);
    WR1_PROG(REG_D0H, 0x08000085U);
    WR1_PROG(REG_00H, 0x00410011U);
    WAIT_STS(REG_04H, 30, 0);
    WR1_PROG(REG_40H, 0x00001800U);

    HW_SCE_p_func100(0x4d13874cU, 0x18c0031bU, 0x72e9c9e1U, 0x6c1ecdaaU);
    WR1_PROG(REG_14H, 0x000000a1U);
    WR1_PROG(REG_D0H, 0x0c000094U);
    WAIT_STS(REG_14H, 31, 1);
    WR1_PROG(REG_2CH, change_endian_long(0x00000000U));

    WR1_PROG(REG_94H, 0x00007c07U);
    WR1_PROG(REG_40H, 0x00602000U);
}
